#ifndef __GZIP_H__
#define __GZIP_H__

#include "common.h"



/*
 *@初始化gzip的流
 */
#define INIT_GZIP_STREAM(x) do{  \
	x->zalloc = Z_NULL;  \
	x->zfree = Z_NULL;  \
	x->opaque = Z_NULL;  \
	x->avail_in = 0;  \
	x->next_in = Z_NULL;  \
}while(0)


void addGzipTail(unsigned char *tail, unsigned long data);

int gzipInit(z_stream *stream);

int gzipData(z_stream *stream, unsigned char *out, size_t outMaxLen, unsigned char *in, size_t dataLen);



#endif
